// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import "Language.js" as Language


Item {

    property string langID: "1"
    Item {
        id: titleBox

        width: 400
        height: 40
        z: 1

        LeftTitle{
            x: 10
            y: 0
            text: "email"
            size: 32
        }

        LeftTitle{
            x: 269
            y: 0
            text: "2 new"
            size: 32
        }
        MouseArea {
            id: mouseRegion
            anchors.fill: parent;
            property variant clickedPosition: "1,1"

            onPressed: {
                clickedPosition  = Qt.point(mouse.x,mouse.y)
            }
            onPositionChanged: {
                var mousePosX = (mouse.x <0) ? 0 : mouse.x
               var mousePosY = (mouse.y <0) ? 0 : mouse.y
                var relative = Qt.point(mousePosX-clickedPosition.x, mousePosY-clickedPosition.y)
                titleBox.pos = Qt.point(titleBox.pos.x+relative.x,
                                        titleBox.pos.y+relative.y)

            }
        }
    }
    Item{

        id: blueBox

        width: titleBox.width




        anchors.top: titleBox.top
        anchors.topMargin: 25
        anchors.right: titleBox.right
        Email{

        }

    }
}

